{include file='Common/header.html'}
<link rel="stylesheet" href="{$smarty.const.STATIC_URL}/statics/font-awesome-4.4.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="{$smarty.const.STATIC_URL}/statics/base.css" />
<style>
    .modal.in .modal-dialog{
        margin-top: 20%;
        z-index: 10000;
    }
    .modal-backdrop{
        z-index: 0;
    }
</style>
<div class="page-content">
    <!-- Page Breadcrumb -->
    <div class="page-breadcrumbs">
<div class="bjy-admin-nav"><a href="{$smarty.const.__MODULE__}/Index/index"><i class="fa fa-home"></i> 首页</a> &gt; <a
        href="{$smarty.const.__MODULE__}/Rule/group">用户组列表</a> &gt; 用户组添加用户
</div>
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade in active" id="home">
<table class="table table-striped table-bordered table-hover table-condensed">
    <tr>
        <th width="10%"> 搜索用户名：</th>
        <td>
            <form class="form-inline" action=""><input class="form-control" type="text" name="username"
                                                       value="{$Think.get.username}"> <input class="btn btn-success"
                                                                                             type="submit" value="搜索">
            </form>
        </td>
    </tr>
</table>
<table class="table table-striped table-bordered table-hover table-condensed">
    <tr>
        <th width="10%">用户名</th>
        <th>操作</th>
    </tr>
    {if $user_data}
    {foreach $user_data as $v}
        <tr>
            <th>{$v['username']}</th>
            <td>
                    {if $v['id']|in_array:$uids}
                    已经是{$group_name}
                    {else}
                    <a href="{$smarty.const.__MODULE__}/Rule/add_user_to_group/uid/{$v.id}/group_id/{$smarty.get.group_id}/username/{$smarty.get.username}">设为{$group_name}</a>
                    {/if}
            </td>
        </tr>
    {/foreach}
    {else}
    <tr>
        <td colspan="2">暂无数据</td>
    </tr>
    {/if}
</table>
            </div></div>
    </div></div>
<script src="{$smarty.const.STATIC_URL}/statics/base.js"></script>
<!--Basic Scripts-->
<script src="{$smarty.const.JS_URL}jquery-2.0.3.min.js"></script>
<script src="{$smarty.const.JS_URL}bootstrap.min.js"></script>

<!--Beyond Scripts-->
<script src="{$smarty.const.JS_URL}beyond.min.js"></script>


<!--Page Related Scripts-->
<!--Sparkline Charts Needed Scripts-->
<script src="{$smarty.const.JS_URL}charts/sparkline/jquery.sparkline.js"></script>
<script src="{$smarty.const.JS_URL}charts/sparkline/sparkline-init.js"></script>

<!--Easy Pie Charts Needed Scripts-->
<script src="{$smarty.const.JS_URL}charts/easypiechart/jquery.easypiechart.js"></script>
<script src="{$smarty.const.JS_URL}charts/easypiechart/easypiechart-init.js"></script>

<!--Flot Charts Needed Scripts-->
<script src="{$smarty.const.JS_URL}charts/flot/jquery.flot.js"></script>
<script src="{$smarty.const.JS_URL}charts/flot/jquery.flot.resize.js"></script>
<script src="{$smarty.const.JS_URL}charts/flot/jquery.flot.pie.js"></script>
<script src="{$smarty.const.JS_URL}charts/flot/jquery.flot.tooltip.js"></script>
<script src="{$smarty.const.JS_URL}charts/flot/jquery.flot.orderBars.js"></script>
</body>
</html>